package com.csun.watch.watchmain;

import android.content.Context;

import com.csun.nusing.presenter.BasePresenter;

/**
 * 手表主页面
 * 作者: Created by fzq on 2018/7/30 10:43
 * 邮箱: 15997123593@163.com
 */
public class WatchMainPresenter extends BasePresenter<IWatchMainView> implements MainCallBack{


    public WatchMainPresenter(IWatchMainView view) {
        super(view);
    }

    public void getMianWatchData(Context context,String deviceId){
        WatchMainModel watchMainModel = new WatchMainModelImpl();
        watchMainModel.getDeviceInfo(this,context,"123");
    }

    public void getMianOlderInfoData(Context context,String olderId){
        WatchMainModel watchMainModel = new WatchMainModelImpl();
        watchMainModel.getOlderInfo(this,context,"123");
    }


    @Override
    public void callData(DeviceInfoJsonBean deviceInfoJsonBean) {
        getViewRef().setMianDeviceData("===");
    }

    @Override
    public void callOlderData(OlderInfoJsonBean olderInfoJsonBean) {
        getViewRef().setMianOlderData("===");
    }
}
